package com.imu.purse.modules.app.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.imu.core.base.BaseEntity;
import com.imu.common.validator.group.UpdateGroup;


/**
 * 用户推荐邀请
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-03-21 11:11:59
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_user_inv")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class ImuUserInvEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	//用户ID
	@Column(name="user_id")
	private Long userId;
	
	//邀请人
	@Column(name="user_inv_id")
	private Long userInvId;
	
	//新增时间
	@Column(name="time_create")
	private Date timeCreate;
	
	//修改人
	@Column(name="user_update")
	private Long userUpdate;
	
	//修改时间
	@Column(name="time_update")
	private Date timeUpdate;
	

}
